<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交平台 - 社区管理中心</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #165DFF;
            --primary-light: #E8F3FF;
            --primary-dark: #0E42D2;
            --secondary: #36CFC9;
            --success: #52C41A;
            --warning: #FAAD14;
            --danger: #FF4D4F;
            --dark: #1D2129;
            --gray: #86909C;
            --light: #F2F3F5;
            --border: #E5E6EB;
            --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: #F7F8FA;
            color: var(--dark);
            line-height: 1.6;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: var(--shadow);
            padding: 0.75rem 1rem;
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .navbar-brand {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.5rem;
        }
        
        .nav-link {
            color: var(--dark);
            margin-left: 0.5rem;
            margin-right: 0.5rem;
            font-weight: 500;
            transition: color 0.2s;
            padding: 0.5rem 0.75rem !important;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        /* 侧边栏样式 */
        .sidebar {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            height: fit-content;
            position: sticky;
            top: 90px;
        }
        
        .sidebar-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }
        
        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .sidebar-menu-item {
            margin-bottom: 0.5rem;
        }
        
        .sidebar-menu-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            color: var(--dark);
            text-decoration: none;
            transition: all 0.2s;
        }
        
        .sidebar-menu-link:hover, .sidebar-menu-link.active {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .sidebar-menu-link i {
            margin-right: 0.75rem;
            width: 20px;
            text-align: center;
        }
        
        /* 主内容区 */
        .main-content {
            padding: 2rem 0;
        }
        
        /* 内容卡片样式 */
        .content-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .section-title i {
            color: var(--primary);
            margin-right: 0.5rem;
        }
        
        .section-title .actions {
            font-size: 1rem;
            font-weight: normal;
        }
        
        /* 小黑屋列表样式 */
        .blackroom-list {
            margin-top: 1rem;
        }
        
        .blackroom-item {
            display: flex;
            align-items: center;
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid var(--border);
            margin-bottom: 1rem;
            transition: box-shadow 0.2s;
        }
        
        .blackroom-item:hover {
            box-shadow: var(--shadow-hover);
        }
        
        .user-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 1.5rem;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .user-id {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .sanction-info {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .sanction-item {
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }
        
        .sanction-item i {
            margin-right: 0.35rem;
            color: var(--danger);
        }
        
        .user-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .btn {
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
        }
        
        .btn-success {
            background-color: var(--success);
            border-color: var(--success);
        }
        
        .btn-danger {
            background-color: var(--danger);
            border-color: var(--danger);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--border);
            color: var(--dark);
        }
        
        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background-color: transparent;
        }
        
        /* 惩罚类型标签 */
        .sanction-tag {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .sanction-tag.mute {
            background-color: #FFF1F0;
            color: #CF1322;
        }
        
        .sanction-tag.ban {
            background-color: #FEE5E0;
            color: #D4380D;
        }
        
        .sanction-tag.restrict {
            background-color: #FFF7E6;
            color: #FA8C16;
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            transition: border-color 0.2s;
        }
        
        .form-control:focus {
            border-color: var(--primary);
            outline: none;
        }
        
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }
        
        .form-select {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            transition: border-color 0.2s;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11l4-4H4l4 4z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
        }
        
        /* 搜索栏 */
        .search-container {
            display: flex;
            margin-bottom: 1.5rem;
        }
        
        .search-input {
            flex: 1;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 6px 0 0 6px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2386909C' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: 0.75rem center;
        }
        
        .search-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0 1.25rem;
            border-radius: 0 6px 6px 0;
            cursor: pointer;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .blackroom-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .user-actions {
                margin-top: 1rem;
                width: 100%;
                justify-content: flex-start;
            }
        }
        
        @media (max-width: 768px) {
            .main-content {
                padding: 1.5rem 0;
            }
            
            .sidebar {
                position: static;
                margin-bottom: 1.5rem;
            }
            
            .sanction-info {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .user-actions {
                flex-wrap: wrap;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">社交平台</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-home me-1"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-compass me-1"></i> 发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-users me-1"></i> 社区</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" aria-current="page" href="#"><i class="fas fa-shield-alt me-1"></i> 社区管理</a>
                    </li>
                </ul>
                
                <ul class="navbar-nav ms-3">
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/100/100?random=1" alt="管理员头像" class="rounded-circle" style="width: 36px; height: 36px; object-fit: cover;">
                        </a>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i> 个人中心</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-cog me-2"></i> 管理设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-sign-out-alt me-2"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-content">
        <div class="row">
            <!-- 侧边栏 -->
            <div class="col-lg-3 col-md-4">
                <div class="sidebar">
                    <div class="sidebar-title">社区管理</div>
                    <ul class="sidebar-menu">
                        <li class="sidebar-menu-item">
                            <a href="#" class="sidebar-menu-link">
                                <i class="fas fa-flag"></i> 举报处理
                            </a>
                        </li>
                        <li class="sidebar-menu-item">
                            <a href="#" class="sidebar-menu-link active">
                                <i class="fas fa-lock"></i> 小黑屋管理
                            </a>
                        </li>
                        <li class="sidebar-menu-item">
                            <a href="#" class="sidebar-menu-link">
                                <i class="fas fa-comment-slash"></i> 内容审核
                            </a>
                        </li>
                        <li class="sidebar-menu-item">
                            <a href="#" class="sidebar-menu-link">
                                <i class="fas fa-user-shield"></i> 用户管理
                            </a>
                        </li>
                        <li class="sidebar-menu-item">
                            <a href="#" class="sidebar-menu-link">
                                <i class="fas fa-hashtag"></i> 话题管理
                            </a>
                        </li>
                        <li class="sidebar-menu-item">
                            <a href="#" class="sidebar-menu-link">
                                <i class="fas fa-cog"></i> 管理设置
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            
            <!-- 主内容 -->
            <div class="col-lg-9 col-md-8">
                <!-- 小黑屋列表 -->
                <div class="content-card">
                    <div class="section-title">
                        <div><i class="fas fa-lock"></i> 小黑屋管理</div>
                        <div class="actions">
                            <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#addBlackroomModal">
                                <i class="fas fa-plus me-1"></i> 新增处罚
                            </button>
                        </div>
                    </div>
                    
                    <div class="search-container">
                        <input type="text" class="search-input" placeholder="搜索用户名、ID或处罚原因">
                        <button class="search-btn">
                            <i class="fas fa-search"></i>
                        </button>
                    </div>
                    
                    <div class="blackroom-list">
                        <div class="blackroom-item">
                            <img src="https://picsum.photos/100/100?random=10" alt="用户头像" class="user-avatar">
                            <div class="user-info">
                                <div class="user-name">张某某 <span class="sanction-tag ban">账号封禁</span></div>
                                <div class="user-id">ID: 1008611</div>
                                <div class="sanction-info">
                                    <div class="sanction-item"><i class="fas fa-gavel"></i> 处罚原因: 发布违法违规内容</div>
                                    <div class="sanction-item"><i class="fas fa-calendar-alt"></i> 处罚时间: 2023-06-15</div>
                                    <div class="sanction-item"><i class="fas fa-hourglass-half"></i> 到期时间: 2023-07-15</div>
                                    <div class="sanction-item"><i class="fas fa-user-shield"></i> 操作管理员: admin01</div>
                                </div>
                            </div>
                            <div class="user-actions">
                                <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#liftSanctionModal">
                                    <i class="fas fa-unlock me-1"></i> 解除
                                </button>
                                <button class="btn btn-outline" data-bs-toggle="modal" data-bs-target="#extendSanctionModal">
                                    <i class="fas fa-redo me-1"></i> 延长
                                </button>
                            </div>
                        </div>
                        
                        <div class="blackroom-item">
                            <img src="https://picsum.photos/100/100?random=11" alt="用户头像" class="user-avatar">
                            <div class="user-info">
                                <div class="user-name">李某某 <span class="sanction-tag mute">禁言处理</span></div>
                                <div class="user-id">ID: 1008612</div>
                                <div class="sanction-info">
                                    <div class="sanction-item"><i class="fas fa-gavel"></i> 处罚原因: 恶意评论、人身攻击</div>
                                    <div class="sanction-item"><i class="fas fa-calendar-alt"></i> 处罚时间: 2023-06-18</div>
                                    <div class="sanction-item"><i class="fas fa-hourglass-half"></i> 到期时间: 2023-06-25</div>
                                    <div class="sanction-item"><i class="fas fa-user-shield"></i> 操作管理员: admin02</div>
                                </div>
                            </div>
                            <div class="user-actions">
                                <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#liftSanctionModal">
                                    <i class="fas fa-unlock me-1"></i> 解除
                                </button>
                                <button class="btn btn-outline" data-bs-toggle="modal" data-bs-target="#extendSanctionModal">
                                    <i class="fas fa-redo me-1"></i> 延长
                                </button>
                            </div>
                        </div>
                        
                        <div class="blackroom-item">
                            <img src="https://picsum.photos/100/100?random=12" alt="用户头像" class="user-avatar">
                            <div class="user-info">
                                <div class="user-name">王某某 <span class="sanction-tag restrict">限制功能</span></div>
                                <div class="user-id">ID: 1008613</div>
                                <div class="sanction-info">
                                    <div class="sanction-item"><i class="fas fa-gavel"></i> 处罚原因: 频繁发布广告内容</div>
                                    <div class="sanction-item"><i class="fas fa-calendar-alt"></i> 处罚时间: 2023-06-20</div>
                                    <div class="sanction-item"><i class="fas fa-hourglass-half"></i> 到期时间: 2023-07-05</div>
                                    <div class="sanction-item"><i class="fas fa-user-shield"></i> 操作管理员: admin01</div>
                                </div>
                            </div>
                            <div class="user-actions">
                                <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#liftSanctionModal">
                                    <i class="fas fa-unlock me-1"></i> 解除
                                </button>
                                <button class="btn btn-outline" data-bs-toggle="modal" data-bs-target="#extendSanctionModal">
                                    <i class="fas fa-redo me-1"></i> 延长
                                </button>
                            </div>
                        </div>
                        
                        <div class="blackroom-item">
                            <img src="https://picsum.photos/100/100?random=13" alt="用户头像" class="user-avatar">
                            <div class="user-info">
                                <div class="user-name">赵某某 <span class="sanction-tag ban">永久封禁</span></div>
                                <div class="user-id">ID: 1008614</div>
                                <div class="sanction-info">
                                    <div class="sanction-item"><i class="fas fa-gavel"></i> 处罚原因: 多次发布违规内容，屡教不改</div>
                                    <div class="sanction-item"><i class="fas fa-calendar-alt"></i> 处罚时间: 2023-06-01</div>
                                    <div class="sanction-item"><i class="fas fa-hourglass-half"></i> 到期时间: 永久</div>
                                    <div class="sanction-item"><i class="fas fa-user-shield"></i> 操作管理员: admin03</div>
                                </div>
                            </div>
                            <div class="user-actions">
                                <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#liftSanctionModal">
                                    <i class="fas fa-unlock me-1"></i> 解除
                                </button>
                                <button class="btn btn-outline" disabled>
                                    <i class="fas fa-redo me-1"></i> 延长
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 分页 -->
                    <nav class="mt-4">
                        <ul class="pagination justify-content-center">
                            <li class="page-item disabled">
                                <a class="page-link" href="#" tabindex="-1">上一页</a>
                            </li>
                            <li class="page-item active"><a class="page-link" href="#">1</a></li>
                            <li class="page-item"><a class="page-link" href="#">2</a></li>
                            <li class="page-item"><a class="page-link" href="#">3</a></li>
                            <li class="page-item">
                                <a class="page-link" href="#">下一页</a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 新增处罚模态框 -->
    <div class="modal fade" id="addBlackroomModal" tabindex="-1" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><i class="fas fa-gavel me-2"></i> 新增用户处罚</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label class="form-label">用户ID/用户名</label>
                            <input type="text" class="form-control" placeholder="请输入用户ID或用户名">
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">处罚类型</label>
                            <select class="form-select">
                                <option value="">请选择处罚类型</option>
                                <option value="mute">禁言处理 - 限制用户发布评论和内容</option>
                                <option value="restrict">限制功能 - 限制部分平台功能使用</option>
                                <option value="ban">账号封禁 - 暂时禁止账号登录</option>
                                <option value="permanent-ban">永久封禁 - 永久禁止账号登录</option>
                            </select>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">处罚时长</label>
                            <div class="row">
                                <div class="col-md-6">
                                    <select class="form-select">
                                        <option value="">请选择时长</option>
                                        <option value="1">1天</option>
                                        <option value="3">3天</option>
                                        <option value="7">7天</option>
                                        <option value="15">15天</option>
                                        <option value="30">30天</option>
                                        <option value="90">90天</option>
                                        <option value="180">180天</option>
                                        <option value="365">365天</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">处罚原因</label>
                            <textarea class="form-control" placeholder="请详细描述处罚原因，包括违规内容和相关证据"></textarea>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">处罚依据</label>
                            <select class="form-select">
                                <option value="">请选择处罚依据</option>
                                <option value="1">《社区管理规范》第3条 - 发布违法违规内容</option>
                                <option value="2">《社区管理规范》第5条 - 人身攻击与骚扰</option>
                                <option value="3">《社区管理规范》第7条 - 发布垃圾广告</option>
                                <option value="4">《社区管理规范》第9条 - 侵犯他人权益</option>
                                <option value="5">《社区管理规范》第12条 - 多次违规</option>
                            </select>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline" data-bs-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-danger">确认处罚</button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 解除处罚模态框 -->
    <div class="modal fade" id="liftSanctionModal" tabindex="-1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><i class="fas fa-unlock me-2"></i> 解除用户处罚</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <p>确定要解除对该用户的处罚吗？</p>
                    <div class="form-group">
                        <label class="form-label">解除原因</label>
                        <textarea class="form-control" placeholder="请输入解除处罚的原因"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline" data-bs-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-success">确认解除</button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 延长处罚模态框 -->
    <div class="modal fade" id="extendSanctionModal" tabindex="-1" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"><i class="fas fa-redo me-2"></i> 延长用户处罚</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label class="form-label">延长时长</label>
                        <select class="form-select">
                            <option value="">请选择延长时长</option>
                            <option value="1">1天</option>
                            <option value="3">3天</option>
                            <option value="7">7天</option>
                            <option value="15">15天</option>
                            <option value="30">30天</option>
                        </select>
                    </div>
                    
                    <div class="form-group">
                        <label class="form-label">延长原因</label>
                        <textarea class="form-control" placeholder="请输入延长处罚的原因"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline" data-bs-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-danger">确认延长</button>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 侧边栏菜单激活状态
            const sidebarLinks = document.querySelectorAll('.sidebar-menu-link');
            sidebarLinks.forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault();
                    sidebarLinks.forEach(l => l.classList.remove('active'));
                    this.classList.add('active');
                });
            });
            
            // 处罚类型标签点击事件
            const sanctionTags = document.querySelectorAll('.sanction-tag');
            sanctionTags.forEach(tag => {
                tag.addEventListener('click', function() {
                    // 可以根据处罚类型筛选列表
                    const type = this.getAttribute('class').split(' ')[1];
                    console.log('筛选处罚类型:', type);
                });
            });
            
            // 分页按钮点击事件
            const pageItems = document.querySelectorAll('.page-item:not(.disabled)');
            pageItems.forEach(item => {
                item.addEventListener('click', function(e) {
                    e.preventDefault();
                    document.querySelectorAll('.page-item').forEach(i => i.classList.remove('active'));
                    this.classList.add('active');
                });
            });
        });
    </script>
</body>
</html>
    
